package com.ewing.extranal.im.dto;

import java.util.List;

import com.ewing.utils.BizGenerator;

/**
 * 联系人信息
 * 
 * @author tansonlam
 * @createDate 2016年5月4日
 * 
 */
public class ImRelationInfo {
    /**
     * imUserId
     */
    private Long imUserId;
    /**
     * 联系人信息
     */
    private ImUserInfo userInfo;
    /**
     * 关联主键ID
     */
    private String relationId;
    /**
     * 最后聊天记录ID
     */
    private String lastMessageId;
    /**
     * 聊天记录
     */
    private List<MessageItem> chatRecords;

    public ImRelationInfo() {

    }

    public List<MessageItem> getChatRecords() {
        return chatRecords;
    }

    public void setChatRecords(List<MessageItem> chatRecords) {
        this.chatRecords = chatRecords;
    }

    public String getLastMessageId() {
        return lastMessageId;
    }

    public void setLastMessageId(String lastMessageId) {
        this.lastMessageId = lastMessageId;
    }

    public ImRelationInfo(ImUserInfo userInfo) {
        super();
        this.userInfo = userInfo;
        this.relationId = BizGenerator.generateUUID();
    }

    public Long getImUserId() {
        return imUserId;
    }

    public void setImUserId(Long imUserId) {
        this.imUserId = imUserId;
    }

    public ImUserInfo getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(ImUserInfo userInfo) {
        this.userInfo = userInfo;
    }

    public String getRelationId() {
        return relationId;
    }

    public void setRelationId(String relationId) {
        this.relationId = relationId;
    }

}
